Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Quaternions

QuickDraw 3D defines quaternions as quadruples of floating-point numbers. A quaternion is defined by the TQ3Quaternion data type.

For a description of quaternions and their use in computer graphics, see the article by Hart, Francis, and Kaufman listed in the bibliography.

typedef struct TQ3Quaternion {
    float           w;
    float           x;
    float           y;
    float           z;
} TQ3Quaternion;
w
The w component of a quaternion.
x
The x component of a quaternion.
y
The y component of a quaternion.
z
The z component of a quaternion.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |